import fetch from './fetch'

export default {
    // GetActivitiesList,
    // GetActivityTypes,
    // AddStars,
    PostVerification,
    PostPhoneLogin,
    PostPhonePasswordLogin,
    GetQrCode,
    QrCodeLogin,
    PostVerificationEmail,
    QrCodeRecognition,
    GetFaceInfo,
    sendEmailCode,
    emailLogin
}

// function GetActivitiesList(options){
//     return fetch({
//         method:'get',
//         path:'/api/statistics/activity',
//         params:options
//     });
// }

// function GetActivityTypes(options = {}){
//     return fetch({
//         method:'get',
//         path:'/api/activityTypes',
//         params:options
//     });
// }

// function AddStars(options){
//     return fetch({
//         method:'post',
//         path:'/api/wishesstars/add',
//         params:options
//     });
// }

function PostVerification(options){
    // console.log(options)
    return fetch({
        method:'post',
        path:'/web-api/member/auth/send-sms-code',
        params:options
    });
}
function PostVerificationEmail(options){
    // console.log(options)
    return fetch({
        method:'post',
        path:'/web-api/member/auth/send-emailSms-code',
        params:options
    });
}
function PostPhoneLogin(options){
    return fetch({
        method:'post',
        path:'/web-api/member/auth/sms-login',
        params:options
    });
}
function PostPhonePasswordLogin(options){
    return fetch({
        method:'post',
        path:'/web-api/member/auth/login',
        params:options
    });
}
function GetQrCode(options){
    return fetch({
        method:'get',
        path:'/web-api/member/user/qrcode',
        params:options
    });
}
function QrCodeLogin(options){
    // console.log(options)
    return fetch({
        method:'postForm',
        path:'/web-api/member/auth/gzhLogin',
        params:options
    });
}
// 获取人脸识别二维码
function QrCodeRecognition(options){
    // console.log(options)
    return fetch({
        method:'post',
        path:'/web-api/member/face/recognition',
        params:options
    });
}
// 获取人脸扫码后的信息
function GetFaceInfo(options){
    // console.log(options)
    return fetch({
        method:'post',
        path:'/web-api/member/face/detail',
        params:options
    });
}

// 发送邮箱验证码  
function sendEmailCode(data){
    return fetch({
        method:'post',
        path:'/web-api/member/auth/send-emailSms-code',
        params:data
    });
}
// 使用邮箱 + 验证码登录  
function emailLogin(data){
    return fetch({
        method:'post',
        path:'/web-api/member/auth/email-login',
        params:data
    });
}